<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>齐重后台管理系统</title>
<title>Insert title here</title>
<link rel=stylesheet type=text/css
	href="<%=request.getContextPath()%>/resources/css/backstage/main.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resources/css/admin/main.css"/>
<link rel=stylesheet type=text/css
	href="<%=request.getContextPath()%>/resources/css/backstage/back-nav.css">
<script type=text/javascript
	src="<%=request.getContextPath()%>/resources/js/backstage/back-nav.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/resources/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/resources/js/admin/updateVideo.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/resources/js/core/jquery.cms.core.js"></script>
<script type="text/javascript" charset="utf-8"
	src="<%=request.getContextPath()%>/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8"
	src="<%=request.getContextPath()%>/ueditor/ueditor.all.js"></script>
<LINK rel=stylesheet
	href="<%=request.getContextPath()%>/resources/css/admin/delCon.css">
<script type="text/javascript"
	src="<%=request.getContextPath()%>/dwr/engine.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/dwr/interface/dwrService.js"></script>
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/resources/uploadify/uploadify.css" />
<script type="text/javascript"
	src="<%=request.getContextPath()%>/resources/uploadify/jquery.uploadify.min.js"></script>
</head>
<body>
<jsp:include page="/jsp/admin/top.jsp"></jsp:include>
<div class="content-box">
<jsp:include page="/jsp/admin/nav.jsp"></jsp:include>
	<input type="hidden" id="sid" value="<%=session.getId()%>" />
	<input type="hidden" value="${video.id }" id="videoId" />
	<input type="hidden" value="${video.videoImg.id }" id="videoImgId" />
	<input type="hidden" value="<%=request.getContextPath()%>" id="ctx" />
	<table id="ok_attach" style="border-collapse: collapse">
		<thead>
			<tr id="head" style="">
				<td width=150px;><span>视频封面图片</span></td>
				<td width=100px;><span>视频类型</span></td>
				<td width=100px;><span>视频名称</span></td>
				<td width=700px;><span>视频描述</span></td>
			</tr>
		</thead>
		<tbody id="tbody">
			<td>
				<div id='img-box1'>
					<c:choose>
						<c:when test="${empty video.videoImg}">
						<div id="img-box3">
							<input type="file" id="1vi" />
						</div>
						</c:when>
						<c:otherwise>
							<div id='img-box2'>
								<img
									src="<%=request.getContextPath()%>/resources/upload/thumbnail/${video.videoImg.newName}" />
								<div class='bfont delPic' delId='${video.videoImg.id }'>删除</div>
							</div>
						</c:otherwise>
					</c:choose>
				</div>
			</td>
			<td><select class="proType" id="videoTypeId"
				style="width: 100px; height: 30px; border-radius: 5px;; margin-bottom: 10px; font-size: 13px; outline: none;">
					<c:forEach items="${videoType }" var="vt">
						<c:choose>
							<c:when test="${vt.name==c.name }">
								<option selected="selected" value="${vt.id }">${vt.name }</option>
							</c:when>
							<c:otherwise>
								<option value="${vt.id }">${vt.name }</option>
							</c:otherwise>
						</c:choose>
					</c:forEach>
			</select></td>
			<td><textarea class='proNameText' id="videoName">${video.attName }
				</textarea></td>
			<td><textarea id="proMessage"
					style="width: 700px; height: 200px;">${video.picMessage }</textarea>
				<script type="text/javascript">
					var ue = UE.getEditor('proMessage',
							{
								toolbars : [ [ 'fullscreen', 'undo', 'redo',
										'bold', 'fontsize', 'justifyleft',
										'justifyright', 'justifycenter',
										'justifyjustify', 'forecolor' ] ],
								autoHeightEnabled : false,
								autoFloatEnabled : true
							});
				</script></td>
		</tbody>
	</table>
	<div class="b-box">
		<div class="bfont confirm">确定</div>
		<div class="bfont cancel">修改</div>
		<div class="bfont ok">完成</div>
	</div>
	</center>
	</div>
</body>
</html>